<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>抽奖</title>
	</head>
	<body>
		<div  id="luckyphone"></div>
		<input type="button" value="抽奖" id="choujian"/>
		<script>
			var phones=["18225853593","15212597237","13412346785"];
			luckyphone.innerHTML=phones[0];
			var timer;
			choujian.onclick=function(){
				if(choujian.value=="停"){
					clearInterval(timer)
					choujian.value="抽奖"
				}else{
					timer=setInterval(f,10);
					choujian.value="停"
				}
			}
			function f(){
				luckyphone.innerHTML=phones[Math.floor(Math.random()*phones.length)];
			}
		</script>
	</body>
</html>
